package com.mtw.bbs.article.mapper;



import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.mtw.bbs.article.pojo.entity.TopicMember;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
 * 话题成员
 */
@Repository
public interface TopicMemberMapper extends BaseMapper<TopicMember> {

    /**
     * 查询话题的成员数量
     *
     * @param qw            查询条件
     * @return              结果
     */
    List<HashMap<String, Object>> getMemberCountByTopic(@Param(Constants.WRAPPER) LambdaQueryWrapper<TopicMember> qw);


}
